package org.wu.framework.authorization.platform.infrastructure.entity;

import lombok.Data;
import lombok.experimental.Accessors;
import org.wu.framework.lazy.orm.core.stereotype.LazyTableIndex;
import org.wu.framework.core.stereotype.LayerField;
import org.wu.framework.core.stereotype.LayerField.LayerFieldType;
import org.wu.framework.lazy.orm.core.stereotype.LazyTable;
import org.wu.framework.lazy.orm.core.stereotype.LazyTableField;
import org.wu.framework.lazy.orm.core.stereotype.*;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import java.time.LocalDateTime;
import org.wu.framework.lazy.orm.core.stereotype.LazyTableFieldId;
import java.lang.Long;
import java.lang.Boolean;
import java.lang.String;
/**
 * describe 系统权限 
 *
 * @author Jia wei Wu
 * @date 2025/08/03 01:55 下午
 * @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyInfrastructureEntity 
 **/
@Data
@Accessors(chain = true)
@LazyTable(tableName = "sys_permission",comment = "系统权限")
@Schema(title = "sys_permission",description = "系统权限")
public class SysPermissionDO {


    /**
     * 
     * 创建时间
     */
    @Schema(description ="创建时间",name ="createTime",example = "")
    @LazyTableField(name="create_time",comment="创建时间",defaultValue="CURRENT_TIMESTAMP",upsertStrategy = LazyFieldStrategy.NEVER,columnType="datetime",extra="")
    private LocalDateTime createTime;

    /**
     * 
     * 主键
     */
    @Schema(description ="主键",name ="id",example = "")
    @LazyTableFieldUUId(name = "id", comment = "主键")
    private String id;

    /**
     * 
     * 是否删除
     */
    @Schema(description ="是否删除",name ="isDeleted",example = "")
    @LazyTableField(name="is_deleted",comment="是否删除",columnType="tinyint(1)")
    private Boolean isDeleted;

    /**
     * 
     * 权限方法
     */
    @Schema(description ="权限方法",name ="method",example = "")
    @LazyTableField(name="method",comment="权限方法",columnType="varchar(255)")
    private String method;

    /**
     * 
     * 权限路径
     */
    @Schema(description ="权限路径",name ="url",example = "")
    @LazyTableField(name="url",comment="权限路径",columnType="varchar(255)")
    private String url;

    /**
     * 
     * 区域ID
     */
    @Schema(description ="区域ID",name ="zoneId",example = "")
    @LazyTableField(name="zone_id",comment="区域ID",columnType="varchar(255)")
    private String zoneId;

}